package team.southcat.wsyygh.model.pojo.hospital;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import team.southcat.wsyygh.model.pojo.base.BaseEntity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author QiuSiYi
 * @since 2023-05-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Schedule implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 排班id
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /**
     * 所属医院id
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long hospitalId;

    /**
     * 医生id
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long doctorId;

    /**
     * 安排日期（年月日）
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date workDate;

    /**
     * 安排时间（0：上午，1：下午）
     */
    private Integer workTime;

    /**
     * 供预约总数
     */
    private Integer bookingCount;

    /**
     * 剩余预约数
     */
    private Integer bookingSurplus;

    /**
     * 医事服务费
     */
    private BigDecimal amount;

    /**
     * 排班状态（-1：停诊，0：停约，1：可约）
     */
    private Integer status;

    private Date updateTime;

    private Integer isDeleted;

    private Date createTime;


}
